package com.example.friend.domain.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class UserSubmitDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "提交记录id")
    private Long submitId;

    @Schema(description = "竞赛id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "题目id")
    private Long questionId;

    @Schema(description = "编程语言类型（0 java 1 C++）")
    private Integer programType;

    @Schema(description = "用户代码")
    private String userCode;
}
